# import sys
# import os
# sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../../')))
# import backend.DID.DID_interface as DID_interface

# serve_did="did:p2p_did_chat:9pVhLAID5p"
# port=8800
# DID_interface.DID_listen(serve_did, port)
# print("等待接收数据")
# received_data = DID_interface.DID_recv()
# print("收到",received_data)
# data={ "type": "text",
#            "content": "你好！" ,
#            "timestamp": "2025-07-10T10:30:00"}
# # response = {"status": "ok"}
# DID_interface.DID_send(data)
# print("已发送响应")

# DID_interface.DID_close()